﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="header">
    <div class="top">
        <div class="logo">
            <a accesskey="1" href="/">
                <img height="80" title="Pop Event" alt="Pop Event - Your guide to the popular events & things"
                    src="../../content/images/web/logo.png" />
            </a>
        </div>
        <div class="header_right">
            <div class="sitelinks">
                <ul class="hlinks">
                    <%
                        if (Request.IsAuthenticated && ViewData["UserState"] != null)
                        {
                            User userState = (User)ViewData["UserState"];%>
                    <li>Welcome<strong>
                        <%=userState.Name%></strong> </li>
                    <li>
                        <%= Html.ActionLink("Settings", "useredit", "user", new { userID = userState.UserID }, new { title = userState.Name })%>
                    </li>
                    <li>
                        <%=Html.ActionLink("logout", "logout", "user", new { userid = userState.UserID, returnurl = Request.RawUrl }, new { title = "logout" })%>
                    </li>
                    <% }
                        else
                        { %>
                    <li>
                        <%=Html.ActionLink("Login", "login", "user", new { returnurl = Request.RawUrl }, new { title = "login" })%>
                    </li>
                    <%} %>
                    <li><a href="#">Sitemap</a></li>
                    <li><a href="#">Contact</a></li>
                </ul>
            </div>
            <div>
                <div class="register_banner">
                    <p>
                        <a style="display: block;" href="/user/login"><strong>Registration</strong> for Pop
                            Event site and be the first to receive the events schedule. »</a></p>
                </div>
                <div class="site_search">
                    <% using (Html.BeginForm("event", "search", FormMethod.Get, new { enctype = "multipart/form-data" }))
                       { %>
                    <div>
                        <input type="text" id="keyword_header" name="q" title="Search" class="text" />
                        <input type="submit" class="button" value="Search" />
                    </div>
                    <% } %>
                    <ul>
                        <li><a href="#">Advanced search</a> </li>
                        <li><a href="#">Site map</a> </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="primary_nav">
        <!-- Level1 -->
        <ul class="leftlistchild">
            <li>
                <%= Html.ActionLink("Home", "Index", "Home")%></li>
            <li>
                <%= Html.ActionLink("Create an event", "Create", "Event")%></li>
            <li>
                <%= Html.ActionLink("About Us", "About", "Home")%></li>
            <li>
                <%=Html.ActionLink("Login", "login", "user", new { returnurl = Request.RawUrl }, new { title = "login" })%></li>
        </ul>
        <!-- End Level1 -->
    </div>
    <div class="secondary_nav">
        <!-- Level2 -->
        <!-- End Level2 -->
    </div>
</div>
